package com.archie.xunji;

import android.app.Activity;
import android.content.Intent;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.Menu;
import android.view.MenuItem;

import java.util.jar.Manifest;

public class WelcomeActivity extends Activity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_welcome);

        new Thread(new Runnable() {

            @Override
            public void run() {

                try {

                    Thread.sleep(3000);

                    Intent intent = new Intent(WelcomeActivity.this, MainActivity.class);

                    startActivity(intent);

                    WelcomeActivity.this.finish();

                } catch (InterruptedException e) {
                    e.printStackTrace();
                }

            }

        }).start();
    }
}
